app.service("loginService",function ($http) {
    //1.得到当前登录的用户名
    this.loginName=function () {
        return $http.get("../login/loginName.do");
    }
})

